{% extends "main/shared.html" %}
{% load static %}

{% block head %}
  <title>发布内容</title>
{% endblock %}
{% block main %}
  <div class="d-grid" style="height: 80vh">
    <form class="d-flex flex-column p-4 shadow-lg rounded-4" method="post" enctype="multipart/form-data">
      {% csrf_token %}
      <label class="form-label">
        请输入标题
        <input class="form-control" name="title">
      </label>
      <label class="form-label">
        请输入正文
        <textarea class="form-control" name="description"></textarea>
      </label>
      <label class="form-label">
        添加封面
        <input class="form-control" type="file" name="banner" accept="image/gif, image/jpeg, image/png, image/jpg">
      </label>
      <button class="btn btn-primary" type="submit">发布</button>
    </form>
  </div>
{% endblock %}
